package test.design_pattern.chainOfResponsibility;

/**
 * 过滤HTML中的脚本元素
 * @author lcq
 *
 */
public class HTMLFilter implements Filter {

	@Override
	public void doFilter(Request request, Response response,FilterChain chain) {
		request.requestStr = request.getRequestStr().replace("<", "[")
				.replace(">", "] --------HTMLFilter");
		chain.doFilter(request, response, chain);
		response.responseStr += "--------HTMLFilter";
		
	}

}
